<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>[Generic Component Framework v3] GCF::QmlApplicationServices Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<!--link href="tabs.css" rel="stylesheet" type="text/css"-->
</head><body>
 <div id="wrapper">
    <div id="logo_box">
        <a class="img_link" href="https://github.com/pnudupa/gcf" target="_blank" ><img style="float:left;margin-left:10px;margin-top:5px;margin-bottom:5px;"src="header_gcf_logo.jpg" alt="GCF LOGO"/></a>
        <a class="img_link" href="https://www.vcreatelogic.com/" target="_blank" ><img style="float:right;margin-right:10px; margin-top: 30px;" src="header_vcl_logo.jpg" alt="VCL LOGO"/></a>
        <div style="clear:both"></div>
    </div>
    <div class="nav">
        <ul>
            <li class="selectedpage">
                <a class="a-home" href="index.html" >
                    <span>Home</span>
                </a>
            </li>
            <li>
                <a class="a-classes " href="classes.html">
                    <span>All Classes</span>
                </a>
            </li>
            <li>
                <a class="a-home " href="gcf_modules.html">
                    <span>Modules</span>
                </a>
            </li>
            <li>
                <a class="a-home " href="gcf_guides_and_videos.html">
                    <span>Guides & Videos</span>
                </a>
            </li>
            <li>
                <a class="a-home " href="gcf_tools_and_inbuilt_components.html">
                    <span>Tools & Components</span>
                </a>
            </li>
        </ul>
    </div>
    <div id="main-content">
        <div class="inside">
        <div>
<!-- Generated by Doxygen 1.8.16 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>GCF</b></li><li class="navelem"><a class="el" href="class_g_c_f_1_1_qml_application_services.html">QmlApplicationServices</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="class_g_c_f_1_1_qml_application_services-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">GCF::QmlApplicationServices Class Reference<div class="ingroups"><a class="el" href="group__gcf__quick.html">GCF Quick Module</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>Base-class for <a class="el" href="class_g_c_f_1_1_qml_application.html">GCF::QmlApplication</a>.  
 <a href="class_g_c_f_1_1_qml_application_services.html#details">More...</a></p>

<p><code>#include &lt;GCF3/QmlApplication&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aa11230085c44c3c864dda69efafc2bf0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_qml_application_services.html#aa11230085c44c3c864dda69efafc2bf0">setQmlEngine</a> (QQmlEngine *engine)</td></tr>
<tr class="separator:aa11230085c44c3c864dda69efafc2bf0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1afe9f9db157620fa428b9f8ec0d8b1b"><td class="memItemLeft" align="right" valign="top">QQmlEngine *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_qml_application_services.html#a1afe9f9db157620fa428b9f8ec0d8b1b">qmlEngine</a> () const</td></tr>
<tr class="separator:a1afe9f9db157620fa428b9f8ec0d8b1b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_g_c_f_1_1_application_services"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_g_c_f_1_1_application_services')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_g_c_f_1_1_application_services.html">GCF::ApplicationServices</a></td></tr>
<tr class="memitem:a1c74a1de7e24875ecf7f91dc21a085ae inherit pub_methods_class_g_c_f_1_1_application_services"><td class="memItemLeft" align="right" valign="top">QDateTime&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_application_services.html#a1c74a1de7e24875ecf7f91dc21a085ae">launchTimestamp</a> () const</td></tr>
<tr class="separator:a1c74a1de7e24875ecf7f91dc21a085ae inherit pub_methods_class_g_c_f_1_1_application_services"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a22657bd136cbf7a285cf0b273a40963a inherit pub_methods_class_g_c_f_1_1_application_services"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_g_c_f_1_1_object_tree.html">ObjectTree</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_application_services.html#a22657bd136cbf7a285cf0b273a40963a">objectTree</a> () const</td></tr>
<tr class="separator:a22657bd136cbf7a285cf0b273a40963a inherit pub_methods_class_g_c_f_1_1_application_services"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afe8a420a3132ced09360301bf3f0d024 inherit pub_methods_class_g_c_f_1_1_application_services"><td class="memItemLeft" align="right" valign="top">QObject *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_application_services.html#afe8a420a3132ced09360301bf3f0d024">findObject</a> (const QString &amp;path) const</td></tr>
<tr class="separator:afe8a420a3132ced09360301bf3f0d024 inherit pub_methods_class_g_c_f_1_1_application_services"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9fe06a88ce3a56f825cd2e11be4b0cf0 inherit pub_methods_class_g_c_f_1_1_application_services"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_application_services.html#a9fe06a88ce3a56f825cd2e11be4b0cf0">loadComponent</a> (<a class="el" href="class_g_c_f_1_1_component.html">Component</a> *component)</td></tr>
<tr class="separator:a9fe06a88ce3a56f825cd2e11be4b0cf0 inherit pub_methods_class_g_c_f_1_1_application_services"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae7f24097c2789e90f0e8abf8308c42ae inherit pub_methods_class_g_c_f_1_1_application_services"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_application_services.html#ae7f24097c2789e90f0e8abf8308c42ae">unloadComponent</a> (<a class="el" href="class_g_c_f_1_1_component.html">Component</a> *component)</td></tr>
<tr class="separator:ae7f24097c2789e90f0e8abf8308c42ae inherit pub_methods_class_g_c_f_1_1_application_services"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a35f6ffbb8e70a361a53037cf7e9e5f95 inherit pub_methods_class_g_c_f_1_1_application_services"><td class="memItemLeft" align="right" valign="top">QObjectList&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_application_services.html#a35f6ffbb8e70a361a53037cf7e9e5f95">components</a> () const</td></tr>
<tr class="separator:a35f6ffbb8e70a361a53037cf7e9e5f95 inherit pub_methods_class_g_c_f_1_1_application_services"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adc5ee0d4672aed7e5480b7e7f2e71641 inherit pub_methods_class_g_c_f_1_1_application_services"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_application_services.html#adc5ee0d4672aed7e5480b7e7f2e71641">activateComponent</a> (<a class="el" href="class_g_c_f_1_1_component.html">Component</a> *component)</td></tr>
<tr class="separator:adc5ee0d4672aed7e5480b7e7f2e71641 inherit pub_methods_class_g_c_f_1_1_application_services"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a93ad6717dff8c8354bf2b7ef32d06de7 inherit pub_methods_class_g_c_f_1_1_application_services"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_application_services.html#a93ad6717dff8c8354bf2b7ef32d06de7">deactivateComponent</a> (<a class="el" href="class_g_c_f_1_1_component.html">Component</a> *component)</td></tr>
<tr class="separator:a93ad6717dff8c8354bf2b7ef32d06de7 inherit pub_methods_class_g_c_f_1_1_application_services"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a907cbc9b58b547731da5f490c0164655 inherit pub_methods_class_g_c_f_1_1_application_services"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_application_services.html#a907cbc9b58b547731da5f490c0164655">isLoaded</a> (const <a class="el" href="class_g_c_f_1_1_component.html">Component</a> *component) const</td></tr>
<tr class="separator:a907cbc9b58b547731da5f490c0164655 inherit pub_methods_class_g_c_f_1_1_application_services"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae5c18ed2bb80b7e49a93354f8e40357e inherit pub_methods_class_g_c_f_1_1_application_services"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_application_services.html#ae5c18ed2bb80b7e49a93354f8e40357e">isActive</a> (const <a class="el" href="class_g_c_f_1_1_component.html">Component</a> *component) const</td></tr>
<tr class="separator:ae5c18ed2bb80b7e49a93354f8e40357e inherit pub_methods_class_g_c_f_1_1_application_services"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8653edba3023115ca6b087800156f344 inherit pub_methods_class_g_c_f_1_1_application_services"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_application_services.html#a8653edba3023115ca6b087800156f344">unloadAllComponents</a> ()</td></tr>
<tr class="separator:a8653edba3023115ca6b087800156f344 inherit pub_methods_class_g_c_f_1_1_application_services"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2d00007fdb8de827c1d47aac03e0d09c inherit pub_methods_class_g_c_f_1_1_application_services"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_g_c_f_1_1_component.html">Component</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_application_services.html#a2d00007fdb8de827c1d47aac03e0d09c">instantiateComponent</a> (const QString &amp;library)</td></tr>
<tr class="separator:a2d00007fdb8de827c1d47aac03e0d09c inherit pub_methods_class_g_c_f_1_1_application_services"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8d60f8cbb123edced1b8326ffea0b26f inherit pub_methods_class_g_c_f_1_1_application_services"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_g_c_f_1_1_component.html">Component</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_application_services.html#a8d60f8cbb123edced1b8326ffea0b26f">loadComponent</a> (const QString &amp;library)</td></tr>
<tr class="separator:a8d60f8cbb123edced1b8326ffea0b26f inherit pub_methods_class_g_c_f_1_1_application_services"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4e82c9827208f2d362afd6820c1556d2 inherit pub_methods_class_g_c_f_1_1_application_services"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_g_c_f_1_1_component.html">Component</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_application_services.html#a4e82c9827208f2d362afd6820c1556d2">loadComponent</a> (const QString &amp;library, const QList&lt; QPair&lt; QByteArray, QVariant &gt; &gt; &amp;properties)</td></tr>
<tr class="separator:a4e82c9827208f2d362afd6820c1556d2 inherit pub_methods_class_g_c_f_1_1_application_services"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a23b3dbefa1596550f6fa85bba4d8d63d inherit pub_methods_class_g_c_f_1_1_application_services"><td class="memItemLeft" align="right" valign="top">QList&lt; <a class="el" href="class_g_c_f_1_1_component.html">Component</a> * &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_application_services.html#a23b3dbefa1596550f6fa85bba4d8d63d">loadComponents</a> (const QStringList &amp;libraries)</td></tr>
<tr class="separator:a23b3dbefa1596550f6fa85bba4d8d63d inherit pub_methods_class_g_c_f_1_1_application_services"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7e69fc75a4845eb0b74f75e606d50fe9 inherit pub_methods_class_g_c_f_1_1_application_services"><td class="memItemLeft" align="right" valign="top">QVariantMap&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_application_services.html#a7e69fc75a4845eb0b74f75e606d50fe9">argumentsMap</a> () const</td></tr>
<tr class="separator:a7e69fc75a4845eb0b74f75e606d50fe9 inherit pub_methods_class_g_c_f_1_1_application_services"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0f82916833415a06831f097ab940e893 inherit pub_methods_class_g_c_f_1_1_application_services"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_application_services.html#a0f82916833415a06831f097ab940e893">processArguments</a> (const QStringList &amp;additionalArgs=QStringList())</td></tr>
<tr class="separator:a0f82916833415a06831f097ab940e893 inherit pub_methods_class_g_c_f_1_1_application_services"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a40fb06709138b7f3813c120af3764933 inherit pub_methods_class_g_c_f_1_1_application_services"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_g_c_f_1_1_result.html">GCF::Result</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_application_services.html#a40fb06709138b7f3813c120af3764933">invokeMethod</a> (const QString &amp;path, const QString &amp;method, const QVariantList &amp;args, bool secureCall=true) const</td></tr>
<tr class="memdesc:a40fb06709138b7f3813c120af3764933 inherit pub_methods_class_g_c_f_1_1_application_services"><td class="mdescLeft">&#160;</td><td class="mdescRight">This method can be used to invoke a named method in an object.  <a href="class_g_c_f_1_1_application_services.html#a40fb06709138b7f3813c120af3764933">More...</a><br /></td></tr>
<tr class="separator:a40fb06709138b7f3813c120af3764933 inherit pub_methods_class_g_c_f_1_1_application_services"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5876997c792e0da530d72d44e9b08e02 inherit pub_methods_class_g_c_f_1_1_application_services"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_g_c_f_1_1_job_list_model.html">GCF::JobListModel</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_application_services.html#a5876997c792e0da530d72d44e9b08e02">jobs</a> () const</td></tr>
<tr class="separator:a5876997c792e0da530d72d44e9b08e02 inherit pub_methods_class_g_c_f_1_1_application_services"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac9e7f18e0880cb7cdaaf8513f0205dae inherit pub_methods_class_g_c_f_1_1_application_services"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_application_services.html#ac9e7f18e0880cb7cdaaf8513f0205dae">translate</a> (const QString &amp;string) const</td></tr>
<tr class="separator:ac9e7f18e0880cb7cdaaf8513f0205dae inherit pub_methods_class_g_c_f_1_1_application_services"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:abd12fa75c7189a79723f45e1ad621c17"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_g_c_f_1_1_qml_application_services.html">QmlApplicationServices</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_qml_application_services.html#abd12fa75c7189a79723f45e1ad621c17">instance</a> ()</td></tr>
<tr class="separator:abd12fa75c7189a79723f45e1ad621c17"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_static_methods_class_g_c_f_1_1_application_services"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_class_g_c_f_1_1_application_services')"><img src="closed.png" alt="-"/>&#160;Static Public Member Functions inherited from <a class="el" href="class_g_c_f_1_1_application_services.html">GCF::ApplicationServices</a></td></tr>
<tr class="memitem:a662dfd0e67c19c9acc560aab111d213e inherit pub_static_methods_class_g_c_f_1_1_application_services"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_g_c_f_1_1_result.html">GCF::Result</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_application_services.html#a662dfd0e67c19c9acc560aab111d213e">invokeMethod</a> (QObject *object, const QString &amp;method, const QVariantList &amp;args, bool secureCall=true)</td></tr>
<tr class="memdesc:a662dfd0e67c19c9acc560aab111d213e inherit pub_static_methods_class_g_c_f_1_1_application_services"><td class="mdescLeft">&#160;</td><td class="mdescRight">This method can be used to invoke a named method in an object.  <a href="class_g_c_f_1_1_application_services.html#a662dfd0e67c19c9acc560aab111d213e">More...</a><br /></td></tr>
<tr class="separator:a662dfd0e67c19c9acc560aab111d213e inherit pub_static_methods_class_g_c_f_1_1_application_services"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a39426d0f07f246f5cc8efc8b8cf4020a inherit pub_static_methods_class_g_c_f_1_1_application_services"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_g_c_f_1_1_result.html">GCF::Result</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_application_services.html#a39426d0f07f246f5cc8efc8b8cf4020a">invokeMethod</a> (QObject *object, const QMetaMethod &amp;method, const QVariantList &amp;args, bool secureCall=true)</td></tr>
<tr class="memdesc:a39426d0f07f246f5cc8efc8b8cf4020a inherit pub_static_methods_class_g_c_f_1_1_application_services"><td class="mdescLeft">&#160;</td><td class="mdescRight">This method can be used to invoke a named method in an object.  <a href="class_g_c_f_1_1_application_services.html#a39426d0f07f246f5cc8efc8b8cf4020a">More...</a><br /></td></tr>
<tr class="separator:a39426d0f07f246f5cc8efc8b8cf4020a inherit pub_static_methods_class_g_c_f_1_1_application_services"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:aef4a11da05f19e7ee7debcbfc7adbe01"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_qml_application_services.html#aef4a11da05f19e7ee7debcbfc7adbe01">QmlApplicationServices</a> ()</td></tr>
<tr class="separator:aef4a11da05f19e7ee7debcbfc7adbe01"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a47549fbbf283490600ff41c3b8cad2"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_qml_application_services.html#a0a47549fbbf283490600ff41c3b8cad2">~QmlApplicationServices</a> ()</td></tr>
<tr class="separator:a0a47549fbbf283490600ff41c3b8cad2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0893ff688fe3a41f3b64acd514c2f2e1"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_qml_application_services.html#a0893ff688fe3a41f3b64acd514c2f2e1">initQmlEngine</a> (QQmlEngine *)</td></tr>
<tr class="separator:a0893ff688fe3a41f3b64acd514c2f2e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_methods_class_g_c_f_1_1_application_services"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_class_g_c_f_1_1_application_services')"><img src="closed.png" alt="-"/>&#160;Protected Member Functions inherited from <a class="el" href="class_g_c_f_1_1_application_services.html">GCF::ApplicationServices</a></td></tr>
<tr class="memitem:a1c8593d1a025cf527cf66c562eb182c1 inherit pro_methods_class_g_c_f_1_1_application_services"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_application_services.html#a1c8593d1a025cf527cf66c562eb182c1">ApplicationServices</a> ()</td></tr>
<tr class="separator:a1c8593d1a025cf527cf66c562eb182c1 inherit pro_methods_class_g_c_f_1_1_application_services"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad836b399f18c1d364f9caeb1e096cd88 inherit pro_methods_class_g_c_f_1_1_application_services"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_application_services.html#ad836b399f18c1d364f9caeb1e096cd88">~ApplicationServices</a> ()</td></tr>
<tr class="separator:ad836b399f18c1d364f9caeb1e096cd88 inherit pro_methods_class_g_c_f_1_1_application_services"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>This class extends <a class="el" href="class_g_c_f_1_1_application_services.html">GCF::ApplicationServices</a> by offering certain Qml specific application services in addition to what the base class offers. Its subclass <a class="el" href="class_g_c_f_1_1_qml_application.html">GCF::QmlApplication</a> should be instantiated for writing QML+GCF applications. Whenever an instance of <a class="el" href="class_g_c_f_1_1_qml_application.html">GCF::QmlApplication</a> is created, you must call the <a class="el" href="class_g_c_f_1_1_qml_application_services.html#aa11230085c44c3c864dda69efafc2bf0">setQmlEngine()</a> method to set the application engine that will be used by your QML application.</p>
<p>You will never have to use this class directly, because in most cases you will create an instance of <a class="el" href="class_g_c_f_1_1_qml_application.html">GCF::QmlApplication</a> and use that. There is one exception though: read documentation for <a class="el" href="class_g_c_f_1_1_qml_application_services.html#a0893ff688fe3a41f3b64acd514c2f2e1">initQmlEngine()</a> to know more.</p>
<dl class="section note"><dt>Note</dt><dd>This class is available only if GCF is compiled and linked against Qt 5. </dd></dl>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="aef4a11da05f19e7ee7debcbfc7adbe01"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aef4a11da05f19e7ee7debcbfc7adbe01">&#9670;&nbsp;</a></span>QmlApplicationServices()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">GCF::QmlApplicationServices::QmlApplicationServices </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Constructor </p>

</div>
</div>
<a id="a0a47549fbbf283490600ff41c3b8cad2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0a47549fbbf283490600ff41c3b8cad2">&#9670;&nbsp;</a></span>~QmlApplicationServices()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">GCF::QmlApplicationServices::~QmlApplicationServices </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Destructor </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="abd12fa75c7189a79723f45e1ad621c17"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abd12fa75c7189a79723f45e1ad621c17">&#9670;&nbsp;</a></span>instance()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_g_c_f_1_1_qml_application_services.html">GCF::QmlApplicationServices</a> * GCF::QmlApplicationServices::instance </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>This function returns pointer to the only instance of <a class="el" href="class_g_c_f_1_1_qml_application_services.html">GCF::QmlApplicationServices</a> in the application. The function returns NULL if no such instance was created. </p>

</div>
</div>
<a id="aa11230085c44c3c864dda69efafc2bf0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa11230085c44c3c864dda69efafc2bf0">&#9670;&nbsp;</a></span>setQmlEngine()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void GCF::QmlApplicationServices::setQmlEngine </td>
          <td>(</td>
          <td class="paramtype">QQmlEngine *&#160;</td>
          <td class="paramname"><em>engine</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Using this function you can set the QML engine for use with your GCF application. This function has to be called before any QML code is loaded and evaluated by the engine.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">engine</td><td>pointer to a <code>QQmlEngine</code> that needs to be set as GCF's Qml engine</td></tr>
  </table>
  </dd>
</dl>
<p>Example: </p><div class="fragment"><div class="line"><span class="keywordtype">int</span> main(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> **argv)</div>
<div class="line">{</div>
<div class="line">    <a class="code" href="class_g_c_f_1_1_qml_application.html">GCF::QmlApplication</a> a(argc, argv);</div>
<div class="line"> </div>
<div class="line">    QQuickView qmlView;</div>
<div class="line">    a.setQmlEngine(qmlView.engine());</div>
<div class="line">    qmlView.setSource(....);</div>
<div class="line">    qmlView.show();</div>
<div class="line"> </div>
<div class="line">    <span class="keywordflow">return</span> a.exec();</div>
<div class="line">}</div>
</div><!-- fragment --><p>This function sets two context-properties on the engine's root-context.</p>
<ul>
<li><code>gApp</code> - references the GCF application object </li>
<li><code>gcf</code> - references an internal GCF object that offers the following methods<ul>
<li><code>findObject(string)</code> : returns an object at the specified path</li>
<li><code>findImplementation(string)</code> : returns an object that implements the specified class/interface</li>
<li><code>findImplementations(string)</code> : returns all objects that implement the specified class/interface</li>
<li><code>addQmlItem(string,object)</code> : adds a QML item to the object tree with the first parameter as name. Once added, the item will be exposed as <code>"Application.{name}"</code> </li>
<li><code>removeQmlItem(string)</code> : removes a QML item, whose name is specified in the parameter, from the object tree</li>
</ul>
At the end the <a class="el" href="class_g_c_f_1_1_qml_application_services.html#a0893ff688fe3a41f3b64acd514c2f2e1">initQmlEngine()</a> method is called. You can subclass from <a class="el" href="class_g_c_f_1_1_qml_application_services.html">GCF::QmlApplicationServices</a> or <a class="el" href="class_g_c_f_1_1_qml_application.html">GCF::QmlApplication</a> and reimplement this method to customize further initialization of the <code>engine</code>.</li>
</ul>
<dl class="section note"><dt>Note</dt><dd>this function can be called only once. Once the engine is set, further calls to this function become a no-op. </dd></dl>

</div>
</div>
<a id="a1afe9f9db157620fa428b9f8ec0d8b1b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1afe9f9db157620fa428b9f8ec0d8b1b">&#9670;&nbsp;</a></span>qmlEngine()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QQmlEngine * GCF::QmlApplicationServices::qmlEngine </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns pointer to the <code>QQmlEngine</code> that was set using the <a class="el" href="class_g_c_f_1_1_qml_application_services.html#aa11230085c44c3c864dda69efafc2bf0">setQmlEngine()</a> method. NULL pointer if no engine was set. </p>

</div>
</div>
<a id="a0893ff688fe3a41f3b64acd514c2f2e1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0893ff688fe3a41f3b64acd514c2f2e1">&#9670;&nbsp;</a></span>initQmlEngine()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void GCF::QmlApplicationServices::initQmlEngine </td>
          <td>(</td>
          <td class="paramtype">QQmlEngine *&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>You can reimplement this function to customize the initialization of the <code>QQmlEngine</code> passed as paramete to this function. This function is called from <a class="el" href="class_g_c_f_1_1_qml_application_services.html#aa11230085c44c3c864dda69efafc2bf0">setQmlEngine()</a>. By the time this function is called, the <code>gcf</code> and <code>gApp</code> context properties have already been set.</p>
<p>The default implementation does nothing. </p>

</div>
</div>
</div><!-- contents -->
<div class="ttc" id="aclass_g_c_f_1_1_qml_application_html"><div class="ttname"><a href="class_g_c_f_1_1_qml_application.html">GCF::QmlApplication</a></div><div class="ttdoc">Offers an application object for GCF QML applications.</div><div class="ttdef"><b>Definition:</b> QmlApplication.h:58</div></div>
</div>
</div>
</div>
<div class="footer_content">
<table width="100%" class="footer">
<tr>
<td align="left" width="50%">Copyright &copy; 2013-2019,
 <a class="el" href="http://www.vcreatelogic.com" target="_black">VCreate Logic Private Limited</a></td>
<td align="right" width="50%"><a class="el" href="http://www.vcreatelogic.com/products/gcf" target="_black">GCF - Generic Component Framework</a></td>
</tr>
</table>
</div>
</div>
</body>
</html>
